package com.google.code.expr.lang;

import com.google.code.expr.runtime.EXPRRunTimeState;
import com.google.code.expr.runtime.EXPRValue;
import com.google.code.expr.runtime.EXPRValueConverter;

public class EXPRConstBoolean extends EXPRConst {

	private EXPRValue mBool;
	
	public EXPRConstBoolean(String pBool) {
		mBool = new EXPRValue(EXPRValueConverter.parseBoolean(pBool));
	}

	public String toString() {
		return mBool.toString();
	}
	
	@Override
	public String resolveToString(EXPRRunTimeState pState) {
		return mBool.resolveAsString();
	}

	@Override
	public EXPRValue resolveToValue(EXPRRunTimeState pState) {
		return mBool;
	}
	
	
}
